package com.yike.product.param;

import com.yike.common.pagination.BasePageOrderParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <pre>
 * 商品表 分页参数对象
 * </pre>
 *
 * @author yike
 * @date 2024-07-17
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "店铺商品表分页参数")
public class ShopGoodsPageParam extends BasePageOrderParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "店铺id", required = true)
    // @NotNull(message = "店铺id不能为空")
    private Long shopId;

    @ApiModelProperty("分类id")
    private Long categoryId;

    @ApiModelProperty("条码、商品名称模糊查询")
    private String keyword;

    @ApiModelProperty("上架状态：1上架 0下架")
    private Boolean shelfFlag;

}
